package com.myth.string.exer;

/**
 * 一道面试题
 * @author
 * @create 2021/8/10
 */
public class StringTest {

    String str = new String(  "good");
    char[] ch = {'t', 'e', 's', 't' };
    public void change(String str, char ch[]) {
        str = "test ok";
        ch[0] = 'b';
    }
    public static void main(String[] args) {
        StringTest ex = new StringTest();
        ex. change(ex.str, ex.ch);
        System. out . print(ex.str + " and ");
        System. out . println(ex.ch);//good and best
    }

}
